package com.aiju.cash.ui.stockupdate;

/**
 * 作者：流冥 on 2017/6/30 16:36
 * 说明：
 */

public class History {
    String name;

    public String getName() {
        return name;
    }

    public History(String name) {
        this.name = name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * 重写 equals方法
     *
     * @param object
     * @return
     */
    @Override
    public boolean equals(Object object) {
        if (object instanceof History) {
            History history = (History) object;
            if (this.name == history.getName()) {
                return true;
            }
        }
        return false;
    }
}
